//
//  DYCreateSignatureTextCell.h
//  DaYing
//
//  Created by DaYing Team on 2023.
//  Copyright © 2023 DaYing Team. All rights reserved.
//

#import "BaseTableViewCell.h"

@class DYCreateSignatureTextCell;
@class DYCreateSignatureTextCellModel;

@protocol DYCreateSignatureTextCellDelegate <NSObject>

- (void)createSignatureTextCell:(DYCreateSignatureTextCell *)cell textField:(UITextField *)textField;
- (void)createSignatureTextCell:(DYCreateSignatureTextCell *)cell buttonAction:(UIButton *)sender;

@end

@interface DYCreateSignatureTextCell : BaseTableViewCell <UITextFieldDelegate>

@property (nonatomic,weak) id<DYCreateSignatureTextCellDelegate> delegate;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIButton *myButton;
@property (weak, nonatomic) IBOutlet UITextField *textField;//输入框
@property (strong, nonatomic) DYCreateSignatureTextCellModel *model;

@end


#pragma mark - Model

@interface DYCreateSignatureTextCellModel : NSObject

@property (nonatomic,copy) NSString *title;
@property (nonatomic,copy) NSString *content;
@property (nonatomic,copy) NSString *tip;
@property (nonatomic,assign) NSInteger index;

+ (DYCreateSignatureTextCellModel *)ittemModelWithTitle:(NSString *)title content:(NSString *)content tip:(NSString *)tip index:(NSInteger)index;

@end
